package myjava.k_annotation.pojo;

import myjava.k_annotation.annotation.AnoField;
import myjava.k_annotation.annotation.AnoTable;

/**
 * @Auther: com.cty
 * @Date: 2020/2/22 10:34
 * @Description:  实体类
 * @version: 1.0
 */
@AnoTable(value = "User")
public class User {
    @AnoField(fieldName = "uid", fieldType = "int", constraint = "primary key")
    private int uid;
    @AnoField(fieldName = "uname", fieldType = "varchar(100)")
    private String uname;
    @AnoField(fieldName = "pwd", fieldType = "varchar(100)")
    private String pwd;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
